/////////////////////////////////////////////////////////////////////////////
// Copyright(c) 2012-2015 purang All Rights Reserved
// Name:        critical_section.cc
// Purpose:     
// Author:      syy
// Modified by: 
// Created:     2014/1/3 14:19
// RCS-ID:      
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#if defined(_WIN32)
#include <windows.h>
#include "critical_section_win.h"
#else
#include "critical_section_posix.h"
#endif

namespace qb
{
	CriticalSectionWrapper* CriticalSectionWrapper::CreateCriticalSection()
	{
#ifdef _WIN32
		return new CriticalSectionWindows();
#else
		return new CriticalSectionPosix();
#endif
	}

}  // namespace qb
